package com.example.demoback.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.demoback.entity.Item;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ItemMapper extends BaseMapper<Item> {



    @Select("<script>" +
            "select * from item" +
            "<where>" +
            "itemname like concat('%',#{itemname},'%')" +
            "</where>" +
            "</script>"
            )
    List<Item> selectByName(@Param("itemname")String name);

}
